package org.example.erpapiservicespringmongoimpl.mapper;

import org.example.erpapicommon.model.SimpleCategory;
import org.example.erpapicommon.model.TCategory;
import org.example.erpapiservicespringmongoimpl.doc.CaDoc;
import org.example.erpapiservicespringmongoimpl.doc.CategoryDoc;
import org.mapstruct.Mapper;
import org.mapstruct.Named;

import java.util.ArrayList;
import java.util.List;

@Mapper(componentModel = "spring")
public interface CategoryMapper {
    List<SimpleCategory> fromCategoriesToSimpleCategories(List<CategoryDoc> categories);
    List<TCategory> fromCategoriesToTCategories(List<CategoryDoc> categories);
}
